import {
    createRouter,
    createWebHashHistory,
    RouteRecordRaw
} from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",         // 首页
        name: "home",
        component: () => import("frontend/src/views/home/index.vue"),
        children: []
    },
    {
        path: "/markdown",
        name: "markdown",
        component: () => import("frontend/src/components/markdown/index.vue"),
    },
    {
        path: "/explorer",
        name: "explorer",
        component: () => import("frontend/src/components/explorer/index.vue"),
    },
    {
        path: "/soft",
        name: "soft",
        component: () => import("frontend/src/views/soft/index.vue")
    }
];

const router = createRouter({
    history: createWebHashHistory("/"),
    routes,
});

export default router;
export {routes}
